package com.gf.framework.rabbitmq.porperties;

import com.gf.framework.rabbitmq.model.ExchangeInfo;
import com.gf.framework.rabbitmq.model.QueueInfo;
import com.gf.framework.rabbitmq.model.RabbitMessageType;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author gaofei
 * @date 2022/6/1 20:30
 */
@ConfigurationProperties("spring.rabbitmq")
@Component
@Data
public class RabbitMqProperties implements MqProperties{
    private RabbitMessageType messageType = RabbitMessageType.SERIALIZER;

    /**
     * 交换机信息
     */
    private List<ExchangeInfo> exchanges;
    /**
     * 队列信息
     */
    private List<QueueInfo> queues;
}
